<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>人才详情</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body class="bg-gray-50">
  <div class="max-w-md mx-auto bg-white min-h-screen">
    <div class="p-4 border-b flex items-center">
      <a href="javascript:history.back()" class="mr-2"><i class="fas fa-arrow-left"></i></a>
      <h1 class="text-lg font-semibold">张伟</h1>
    </div>

    <div class="p-4">
      <div class="flex items-center mb-4">
        <img class="w-16 h-16 rounded-full object-cover mr-3" src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=120&h=120&q=80">
        <div class="flex-1">
          <div class="font-semibold">前端开发工程师 · 5年经验</div>
          <div class="text-gray-500 text-sm">北京 · 本科</div>
        </div>
        <button onclick="window.location.href='chat.html'" class="px-3 py-1 bg-blue-600 text-white rounded">发起聊天</button>
      </div>

      <div class="mb-4">
        <div class="font-semibold mb-1">技能</div>
        <div class="flex flex-wrap gap-2 text-sm">
          <span class="px-2 py-1 bg-blue-50 text-blue-600 rounded">React</span>
          <span class="px-2 py-1 bg-blue-50 text-blue-600 rounded">TypeScript</span>
          <span class="px-2 py-1 bg-blue-50 text-blue-600 rounded">Node.js</span>
        </div>
      </div>

      <div class="mb-4">
        <div class="font-semibold mb-1">经历</div>
        <div class="text-gray-600 text-sm">曾就职于某SaaS公司，负责前端架构与组件库建设，主导性能优化。</div>
      </div>

      <div class="flex gap-2">
        <button id="schedule-btn" class="flex-1 py-3 border rounded">安排面试</button>
        <button onclick="window.location.href='chat.html'" class="flex-1 py-3 bg-blue-600 text-white rounded">继续沟通</button>
      </div>
    </div>
  </div>

  <script>
    document.getElementById('schedule-btn').addEventListener('click', () => {
      localStorage.setItem('role', 'company');
      window.location.href = 'chat.html';
      setTimeout(() => {
        alert('请在聊天页右上角使用日程按钮安排面试');
      }, 300);
    });
  </script>
</body>
</html> 